@extends('admin.layouts.master')
@section('css')
    <style>
        .mdui-shadow-1 {
            position: relative;
        }

        .mdui-shadow-1 a {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
        }
    </style>
@endsection
@section('content')
    <div class="mdui-row-xs-4 mdui-typo mdui-text-center mdui-m-b-3">
        <div class="mdui-col">
            <div class="mdui-shadow-1 mdui-hoverable">
                <!-- 标题和 -->
                <div class="mdui-typo-title mdui-color-blue">微博总数</div>
                <!-- 内容 -->
                <div class="mdui-typo-display-1 mdui-p-y-1">{{$data['weibo']}}</div>
                <a href="{{url('/admin/weibo')}}"></a>
            </div>
        </div>
        <div class="mdui-col">
            <div class="mdui-shadow-1 mdui-hoverable">
                <!-- 标题和 -->
                <div class="mdui-typo-title mdui-color-green">评论总数</div>
                <!-- 内容 -->
                <div class="mdui-typo-display-1 mdui-p-y-1">{{$data['comment']}}</div>
                <a href="{{url('/admin/weibo')}}"></a>
            </div>
        </div>
        <div class="mdui-col">
            <div class="mdui-shadow-1 mdui-hoverable">
                <!-- 标题和 -->
                <div class="mdui-typo-title mdui-color-teal">话题总数</div>
                <!-- 内容 -->
                <div class="mdui-typo-display-1 mdui-p-y-1">{{$data['topic']}}</div>
                <a href="{{url('/admin/topic')}}"></a>
            </div>
        </div>
        <div class="mdui-col">
            <div class="mdui-shadow-1 mdui-hoverable">
                <!-- 标题和 -->
                <div class="mdui-typo-title mdui-color-orange">用户总数</div>
                <!-- 内容 -->
                <div class="mdui-typo-display-1 mdui-p-y-1">{{$data['user']}}</div>
                <a href="{{url('/admin/user')}}"></a>
            </div>
        </div>
    </div>

    <div class="mdui-table-fluid">
        <table class="mdui-table mdui-table-hoverable">
            <tr>
                <th colspan="4" class="mdui-typo-title">系统信息</th>
            </tr>
            <tr>
                <td>服务器操作系统</td>
                <td>{{php_uname()}}</td>
                <td>Web 服务器</td>
                <td>{{apache_get_version()}}</td>
            </tr>
            <tr>
                <td>PHP 版本</td>
                <td>{{PHP_VERSION}}</td>
                <td>Socket 支持</td>
                <td>{{(extension_loaded('sockets')) ? '是' : '否'}}</td>
            </tr>
            <tr>
                <td>GD 版本</td>
                <td>{{gd_info()['GD Version']}}</td>
                <td>时区设置</td>
                <td>{{date_default_timezone_get()}}</td>
            </tr>
            <tr>
                <td>Zlib 支持</td>
                <td>{{(extension_loaded('Zlib')) ? '是' : '否'}}</td>
                <td>文件上传的最大大小</td>
                <td>{{ini_get('upload_max_filesize')}}</td>
            </tr>
        </table>
    </div>
@endsection